﻿<%@ Page Culture="auto" UICulture="auto" Title="Additions" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AdditionsDescriptionPage.aspx.cs" Inherits="BM.Tools.WebControls.MForm.Example.Operations.AdditionsDescriptionPage" %>
<%@ Register Assembly="BM.Tools.WebControls.MForm" Namespace="BM.Tools.WebControls.MForm.Controls.Titles"
    TagPrefix="mftitle" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Description" runat="server">
    <div class="Section">
        <mftitle:TitleControl runat="server" Text="What are Additions?" />
        <p>
            The <code>OffspringItem</code> control has an <code>Additions</code> property, which
            is a container control for the <code>Addition</code> controls. This contol implements
            the <code>IEnumerable&lt;Addition&gt;</code> interface, so it is easy to get the
            inner Addition controls.
        </p>
        <p>
            The <code>Addition</code>control can be attached to the item to provide some extra
            functionality both on server side, as well as on client side. The addition is similiar
            to the generic ASP.NET extender, but is designed to cooperate with MForm item controls.
        </p>
        <p>
            Each addition control has a html representation, however this representation is
            not displayed. This is particularly important for MForm items that are dynamically
            added on client side. The template node of the MForm item is cloned on the client
            side along with its html addition representations. When the added item is loaded,
            also its additions are loaded and the new MForm controls has all its additions working.
        </p>
        <p>
            A special type of <code>Addition</code> controls are <code>Constraint</code> controls,
            which take part in items' validation process. Constraint controls are described
            in the next chapter.
        </p>
    </div>
</asp:Content>
